const path = require('path')

module.exports = {
  publicPath: './',
  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'less',
      patterns: [path.resolve(__dirname, 'src/style/index.less')]
    }
  },
  devServer: {
    proxy: {
      'app-api': {
        target: 'https://www.baidu.com/hdh-app-api',
        changeOrigin: true,
        pathRewrite: {
          '^/app-api': ''
        }
      }
    }
  }
}
